package cn.oracle.eshop.cart.dao;

import cn.oracle.eshop.cart.domain.ShoppingCartDO;

/***
 * 购物车管理模块的DAO组件接口
 * @author wyh
 * @date 2022/3/28
*/


public interface ShoppingCartDAO {

    /***
     * 根据用户账号id查询购物车
     * @author wyh
     * @date 2022/3/28
     * @param userAccountId 用户账号ID
     * @return cn.oracle.eshop.cart.domain.ShoppingCartDO 购物车
    */
    ShoppingCartDO getShoppingCartByUserAccountId(Long userAccountId);
/***
 *新增购物车
 * @author wyh
 * @date 2022/3/28
 * @param shoppingCartDO
 * @return
*/

    Long saveShoppingCart(ShoppingCartDO shoppingCartDO);
}
